package com.gsm.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 系统角色表(SysRole)实体类
 *
 * @author wjq
 * @since 2020-11-24 03:47:06
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class SysRoleDto {
    public interface insert{

    }
    public interface update{

    }


    private Long roleId;

    @Size(message = "角色名在10个字符以内", max = 10, groups = SysRoleDto.insert.class)
    @Size(message = "角色名在10个字符以内", max = 10, groups = SysRoleDto.update.class)
    @NotNull(message = "角色名不能为空", groups = SysRoleDto.insert.class)
    @NotNull(message = "角色名不能为空", groups = SysRoleDto.update.class)
    private String roleName;
    /**
     * 描述
     */
    private String roleDesc;
    /**
     * 排序
     */
    private Integer showOrder;
    /**
     * 0失效  1在用
     */
    private Integer status;
}
